console.log ('this is my inject.js');
// hashChangeFire ();
function connetBackground () {
  console.log ('向content发送消息');
}
function hashChangeFire () {
  if (
    'onhashchange' in window &&
    (typeof document.documentMode === 'undefined' || document.documentMode == 8)
  ) {
    //双重监听不通方式触发地址变化
    window.addEventListener ('pushState', connetBackground);
    window.addEventListener ('replaceState', connetBackground);
  } else {
    window.setInterval (connetBackground, 3000);
  }
}
